package cn.com.yangzhenyu;

import java.util.*;

public class Main {
    public static void main(String[] args) {
//        Demo d = new Demo();
//        Demo d2 = new Demo();


//        Integer a = 14;
//        Integer b = Integer.valueOf(14);
//        System.out.println(a == b); // true
//
//        Integer c = 1400;
//        Integer d = Integer.valueOf(1400);
//        System.out.println(c == d); // false

//        TreeSet<A> s = new TreeSet<>((o1, o2) -> o2.getIndex() - o1.getIndex());
//
//        s.add(new A(1,"a1"));
//        s.add(new A(6,"a2"));
//        s.add(new A(3,"a3"));
//
//        for (A a:s) {
//            System.out.println(a.getName());
//        }

        It it = new It();
        int a = it.get();
        System.out.println("a:"+a);
    }

    public static class It {
        public int get(){
            int a = 0;
            try{
                a = 7;
                return a;
            }catch (Exception e){
                a = 0;
            }finally {
                a = 13;
            }
            return a;
        }
    }
}
